import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";

function _templateObject2() {
  var data = _taggedTemplateLiteral(["\n/* theme Animations */\n", "\n"]);

  _templateObject2 = function _templateObject2() {
    return data;
  };

  return data;
}

function _templateObject() {
  var data = _taggedTemplateLiteral(["\n    ", "\n    ", ";\n    ", ";\n    ", ";\n    ", ";\n  "]);

  _templateObject = function _templateObject() {
    return data;
  };

  return data;
}

/**
 * 动画集合
 */
import { css, createGlobalStyle } from "styled-components";
import { getRequiredData } from "@cpaas-front-ui/cfg/lib/utils/utils";

var getComponentAnimation = function getComponentAnimation(name, props) {
  return getRequiredData(props, name, "animation") || "";
};

var componentList = ["input", "button", "inputNumber", "form", "select", "checkbox", "checkboxBtn", "slider", "alert", "radio", "radioButton", "anchor", "list", "transfer", "popconfirm", "modal", "tree", "treeCheck", "menu", "timeline", "spin", "tooltip", "switch", "datePicker", "table", "tabs", "tabsCard", "lineProgress", "circleProgress", "timePicker", "pagination", "notification", "steps"];

var getAnimations = function getAnimations(props) {
  return css(_templateObject(), componentList.map(function (name) {
    return getComponentAnimation(name, props);
  }), getRequiredData(props, "buttonMotion", "motion"), getRequiredData(props, "buttonMotion2", "motion"), getRequiredData(props, "dropdownMotion", "motion"), getRequiredData(props, "inputMotion", "motion"));
};

export default createGlobalStyle(_templateObject2(), getAnimations);